#ifndef PROTOCOL_H
#define PROTOCOL_H

//
//head@aa:bb:cc:ddd
#define kTimerPort  24988

/**
  * 协议字符串方式交互,中间用@分割
  * 格式AA@BB@CC
  * AA:客户端或服务器名称
  * BB:命令字符串
  * CC:命令携带的内容项，不允许里面再包含@
  */
#define kTimerCmdSync            "sync"
#define kTimerCmdRegister        "register"
#define kTimerCmdAuthorization   "authorization"  //valid/invalid
#define kTimerCmdDetect          "detect" //探测时间偏移
#define kTimerCmdControl         "control" //
#define kTimerCmdHeartbeat       "heartbeat" //

#endif // PROTOCOL_H
